<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div style="padding-top:10px;padding-left:15%;padding-right:15%;">
	<div class="row">
		<div class="col-sm-10">
		     <form action="<%=request.getContextPath()%>/user/profiles" class="panel form-horizontal"  method="POST">
				<div class="panel-heading">
					<span class="panel-title">User Profiles</span>
				</div>
				<div class="panel-body">
					<div class="row form-group">
						<label class="col-sm-4 control-label">Page Size:</label>
						<div class="col-sm-4">
							<select id="pageSize" name="pageSize" class="form-control">
								<c:forEach var="pageSizeItem" items="${pageSizes }">  
									<c:choose>
										<c:when test="${pageSizeItem == currentSize}">
											<option value="${pageSizeItem}" selected="selected">${pageSizeItem}</option> 
										</c:when>
										<c:otherwise>
											<option value="${pageSizeItem}">${pageSizeItem}</option> 
										</c:otherwise>
									</c:choose>
				   			</c:forEach>
							</select>
						</div>
					</div>
					<div class="row form-group">
						<label class="col-sm-8 control-label"><font color="red"><%=request.getAttribute("msg")==null?"":request.getAttribute("msg").toString()%></font></label>
					</div>
				</div>
				<div class="panel-footer text-right">
					<button type="submit" class="btn btn-primary">Save</button>
				</div>
			 </form>
		</div>
	</div>
</div>